﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace HNQXYJ.WJY
{
    public partial class ListBox : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
           
            this.LB.Items.Add(new ListItem("选择所有","00"));
            LItems lt = new LItems();
            ListItem item = new ListItem(  lt.Name, lt.Age.ToString());
            this.LB.Items.Add(item);            
        }
    }

    public  class LItems
    {
       public  int Age = 10;
       public  string Name = "天津";
    }
}